package com.softplus.carrefour.hd.bltier.entity;

import java.io.Serializable;

import java.net.URLDecoder;

import java.util.Date;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class CfhdCaseDoc implements Serializable {

    /** identifier field */
    private com.softplus.carrefour.hd.bltier.entity.CfhdCaseDocPK comp_id;

    /** nullable persistent field */
    private String attFileName;

    /** nullable persistent field */
    private String attDesc;

    /** nullable persistent field */
    private String credBy;

    /** nullable persistent field */
    private Date credDate;

    /** nullable persistent field */
    private String updBy;

    /** nullable persistent field */
    private Date updDate;

    /** full constructor */
    public CfhdCaseDoc(com.softplus.carrefour.hd.bltier.entity.CfhdCaseDocPK comp_id, 
                       String attDesc, String credBy, Date credDate, 
                       String updBy, Date updDate) {
        this.comp_id = comp_id;
        this.attDesc = attDesc;
        this.credBy = credBy;
        this.credDate = credDate;
        this.updBy = updBy;
        this.updDate = updDate;
    }

    /** default constructor */
    public CfhdCaseDoc() {
    }

    /** minimal constructor */
    public CfhdCaseDoc(com.softplus.carrefour.hd.bltier.entity.CfhdCaseDocPK comp_id) {
        this.comp_id = comp_id;
    }

    public com.softplus.carrefour.hd.bltier.entity.CfhdCaseDocPK getComp_id() {
        return this.comp_id;
    }

    public void setComp_id(com.softplus.carrefour.hd.bltier.entity.CfhdCaseDocPK comp_id) {
        this.comp_id = comp_id;
    }

    public void setAttFileName(String attFileName) {
        this.attFileName = attFileName;
    }


    public String getAttFileName() {
        /*	String attFileNameNew ="";
    	try{
			attFileNameNew = URLDecoder.decode(attFileName);
    	}catch(java.lang.IllegalArgumentException e){attFileNameNew=attFileName ;}
	return  attFileNameNew;*/
        return attFileName;
    }

    public String getAttDesc() {
        return this.attDesc;
    }

    public void setAttDesc(String attDesc) {
        this.attDesc = attDesc;
    }

    public String getCredBy() {
        return this.credBy;
    }

    public void setCredBy(String credBy) {
        this.credBy = credBy;
    }

    public Date getCredDate() {
        return this.credDate;
    }

    public void setCredDate(Date credDate) {
        this.credDate = credDate;
    }

    public String getUpdBy() {
        return this.updBy;
    }

    public void setUpdBy(String updBy) {
        this.updBy = updBy;
    }

    public Date getUpdDate() {
        return this.updDate;
    }

    public void setUpdDate(Date updDate) {
        this.updDate = updDate;
    }

    public String toString() {
        return new ToStringBuilder(this).append("comp_id", 
                                                getComp_id()).toString();
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if (!(other instanceof CfhdCaseDoc))
            return false;
        CfhdCaseDoc castOther = (CfhdCaseDoc)other;
        return new EqualsBuilder().append(this.getComp_id(), 
                                          castOther.getComp_id()).isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder().append(getComp_id()).toHashCode();
    }


}
